import request from '@/utils/request'

// 查询成绩表1列表
export function listCourses1(query) {
  return request({
    url: '/system/courses1/list',
    method: 'get',
    params: query
  })
}

// 查询成绩表1详细
export function getCourses1(courseId) {
  return request({
    url: '/system/courses1/' + courseId,
    method: 'get'
  })
}

// 新增成绩表1
export function addCourses1(data) {
  return request({
    url: '/system/courses1',
    method: 'post',
    data: data
  })
}

// 修改成绩表1
export function updateCourses1(data) {
  return request({
    url: '/system/courses1',
    method: 'put',
    data: data
  })
}

// 删除成绩表1
export function delCourses1(courseId) {
  return request({
    url: '/system/courses1/' + courseId,
    method: 'delete'
  })
}
